import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;




public class Main {
	
	static String[] categoryUrls = { "", "politics.xml",
			"national.xml", "economy.xml", "international.xml",
			"science.xml", "culture.xml", "sports.xml"};
	static String mainUrl = "http://rss.donga.com/";
	
	public static void main(String argv[]){
		//RssParseThread thread = new RssParseThread("http://rss.donga.com/total.xml");
		
		final List<RssParseThread> threadList = new ArrayList<RssParseThread>();
				
		for(int i = 1 ; i < categoryUrls.length; i++)
			threadList.add(new RssParseThread(mainUrl + categoryUrls[i] ,i));
				
		for(RssParseThread th : threadList)
			th.start();
	}		
}